﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" EnableEventValidation="true" AutoEventWireup="true" CodeBehind="OrderPage.aspx.cs" Inherits="InternetShop.OrderPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Repeater ID="rOrder" runat="server" >
        <HeaderTemplate>
            <table>
                <thead style="background-color: Aqua;"><tr>
                    <td>Image</td>
                    <td>Brand</td>
                    <td>Model</td>
                    <td>Description</td>
                    <td>Price</td>
                </tr></thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
                <tr>
                    <td><img style="height:100px; width: 70px;" src="<%# GeneratePath(Container.DataItem)%>" alt="X" /></td>
                    <td><%# Eval("Brand") %></td>
                    <td><%# Eval("Model") %></td>
                    <td><%# Eval("Description") %></td>
                    <td><%# Eval("Price") %></td>
                </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
          </table>
          <asp:Label runat="server">Total price: <%#getCost() %></asp:Label>
        </FooterTemplate>
        
    </asp:Repeater>
    <br />
    <asp:Label runat="server" ID="addLab">Adress: </asp:Label><asp:TextBox runat="server" ID="address"></asp:TextBox>
    <asp:LinkButton runat="server" Id="orderSend" Text="Send" OnClick="onClick"/>
    <asp:Label runat="server" ID="isComplete"></asp:Label>
    <br />
    <asp:LinkButton runat="server" Text="REDIRECT" OnClick="redirect" ></asp:LinkButton>
</asp:Content>
